/*
 * luaCommonlib.h
 *
 *  Created on: 2010-2-12
 *      Author: Administrator
 */

#ifndef LUACOMMONLIB_H_
#define LUACOMMONLIB_H_

#include "luaEngine.h"


//πµÕ®luaC“˝«Ê∫ÕC++∫Õobjective-Cµƒ“ª–©∫Ø ˝∫Õ ˝æ›Ω·ππ£¨∫Ø ˝∂®“Â‘⁄C++∫Õobjective-C÷–ÕÍ≥…
typedef struct luaL_Screen{
	int testname;
}luaL_Screen;


//os
extern HPData * HpgetRoot();
//osover

extern void LuaPrint(const char * s);
extern HPData * getHPData(lua_State *L);
extern int PushHPData(lua_State *L,const HPData * hpdata);//Ω´hpdata—π»Î’ª∂•

extern int getStringLen(const char * s ,int len);//NSUilib.m
extern char * getsubString(const char * s,int start,int end);
extern void findString(const char * s,const char * fs,int initpos,int * startpos,int * endpos);

extern int CanLogOutput();


#endif /* LUACOMMONLIB_H_ */
